package com.workhours.vo;

/**
 * 登录响应VO
 *
 * @author WorkHours
 * @since 2025-09-19
 */
public class LoginResponse {
    
    private Long userId;
    private String token;
    private String satoken;
    private Boolean isNewUser;
    
    // 构造函数
    public LoginResponse() {}
    
    public LoginResponse(Long userId, String token, String satoken, Boolean isNewUser) {
        this.userId = userId;
        this.token = token;
        this.satoken = satoken;
        this.isNewUser = isNewUser;
    }
    
    // Getters and Setters
    public Long getUserId() {
        return userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    
    public String getToken() {
        return token;
    }
    
    public void setToken(String token) {
        this.token = token;
    }
    
    public String getSatoken() {
        return satoken;
    }
    
    public void setSatoken(String satoken) {
        this.satoken = satoken;
    }
    
    public Boolean getIsNewUser() {
        return isNewUser;
    }
    
    public void setIsNewUser(Boolean isNewUser) {
        this.isNewUser = isNewUser;
    }
    
    @Override
    public String toString() {
        return "LoginResponse{" +
                "userId=" + userId +
                ", token='" + token + '\'' +
                ", satoken='" + satoken + '\'' +
                ", isNewUser=" + isNewUser +
                '}';
    }
}
